import { z } from 'zod';

export const addressSchema = z.object({
  name: z.string().min(1, '请输入姓名').max(10, '姓名最多10个字符'),
  phone: z.string().min(1, '请输入手机号').max(20, '手机号最多20个字符'),
  address: z
    .object({
      id: z.string(),
      address: z.string(),
      longitude: z.number(),
      latitude: z.number(),
    })
    .nullable(),
});
